import java.util.ArrayList;
import java.util.List;


public class Recipe {
    public List<Ingredient> inglist;
    private String instructionText;
    private String instructionShortText;
    private String name;
    private String name2;
    private String id;
    private String showId;
    public String zutatenstring; //TODO: sobald wie möglich aussondern
    private int portionszahl;


    public Recipe() {
        id = "0";
        showId = "0";
        name = "";
        name2 = "";
        instructionText = "";
        instructionShortText = "";
        zutatenstring = "";
        inglist = new ArrayList<Ingredient>();
    }

    public String toString() {
        return ("//////////////\n" +
                "Rezept Nr: " + showId + "\n" +
                "Rezept Name: " + name + "\n" +
                name2 +
                "\nfür " + portionszahl + " Portionen\n" +
                "\nwird wie folgt zubereitet: \n" +
                instructionText + "\n" +
                "Dabei kommen folgende Zutaten zur Anwendung: \n" + zutatenstring +
                "\n/////\n");
    }

    public void setPortionszahl(String str) {
        setPortionszahl(Integer.parseInt(str));
    }

    public void setPortionszahl(int i) {
        portionszahl = i;
    }

    public int getPortionszahl() {
        return portionszahl;
    }

    public void setId(String i) {
        id = i;
    }

    public String getId() {
        return id;
    }


    public void setShowId(String i) {
        showId = i;
    }

    public String getShowId() {
        return showId;
    }

    public void setName(String str) {
        name = str;
    }


    public String Name() {
        return name;
    }

    public void setName2(String str) {
        name2 = str;
    }


    public String Name2() {
        return name2;
    }


    public void setInstructionText(String str) {
        instructionText = str;
    }


    public String getInstructionText() {
        return instructionText;
    }

    public void setInstructionShortText(String str) {
        instructionShortText = str;
    }


    public String getInstructionShortText() {
        return instructionShortText;
    }
}
